﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using DevExpress.XtraPivotGrid;
using System.Collections.Generic;
using DXApplicationTangche.UC.成品出库单.service;
using System.Data;
using DXApplicationTangche.Utils;
using DevExpress.XtraGrid.Demos.util;
using DXApplicationTangche.UC.订单一览新.订单预览新.service;
using DXApplicationTangche.UC.订单一览新.辅料.service;
using DXApplicationTangche.UC.款式尺寸;
using mendian;
using DXApplicationTangche.DTO;
using DXApplicationTangche.UC.货号管理.service;
using DXApplicationTangche.UC.项目流程.Service;
using DXApplicationTangche.UC.订单一览新.销售确认单;

namespace DXApplicationTangche.report
{
    public partial class XtraReport销售日记账预览 : DevExpress.XtraReports.UI.XtraReport
    {
        public XtraReport销售日记账预览(List<VOSaleConfirmExport> 导出SaleConfirmExportList)
        {
            InitializeComponent();
            this.DataSource = 导出SaleConfirmExportList;
            this.BindData(导出SaleConfirmExportList);
        }

        /// <summary>
        /// 绑定表头
        /// </summary>
        private void BindData(List<VOSaleConfirmExport> 导出SaleConfirmExportList)
        {
            this.xrTableCell订单类型.DataBindings.Add("Text", 导出SaleConfirmExportList, "businessType");
            //this.xrTableCell日期.DataBindings.Add("Text", 导出SaleConfirmExportList, "orderDate");

            this.xrPictureBox样衣图.DataBindings.Add("Image", 导出SaleConfirmExportList, "sampleImage");
            this.xrPictureBox面料图.DataBindings.Add("Image", 导出SaleConfirmExportList, "materialImage");

            this.xrTableCell客户名.DataBindings.Add("Text", 导出SaleConfirmExportList, "customerName");
            this.xrTableCell电话.DataBindings.Add("Text", 导出SaleConfirmExportList, "mobile");
            this.xrTableCell款式标签.DataBindings.Add("Text", 导出SaleConfirmExportList, "styleTag");
            this.xrTableCell款式名称.DataBindings.Add("Text", 导出SaleConfirmExportList, "styleNameCn");
            this.xrTableCell面料号.DataBindings.Add("Text", 导出SaleConfirmExportList, "materialCode");
            this.xrTableCell0面料描述.DataBindings.Add("Text", 导出SaleConfirmExportList, "materialNameCn");
            this.xrTableCell尺码.DataBindings.Add("Text", 导出SaleConfirmExportList, "styleSizeCd");
            this.xrTableCell订单数量.DataBindings.Add("Text", 导出SaleConfirmExportList, "quantity");
            this.xrTableCell建议零售价.DataBindings.Add("Text", 导出SaleConfirmExportList, "price");
            this.xrTableCell调整价格.DataBindings.Add("Text", 导出SaleConfirmExportList, "adjustPrice");
            this.xrTableCell设计费用.DataBindings.Add("Text", 导出SaleConfirmExportList, "designPrice");
            this.xrTableCell金额.DataBindings.Add("Text", 导出SaleConfirmExportList, "finalPrice");
            this.xrLabel销售组织.DataBindings.Add("Text", 导出SaleConfirmExportList, "storeName");
            this.xrLabel负责人.DataBindings.Add("Text", 导出SaleConfirmExportList, "assistantName");
        }
    }

}
